<admintpl file="header" />
<style>
	*{margin:0; padding:0;}
	body{font-family: "Microsoft Yahei", "hiragino sans gb", Helvetica, Arial, Tahoma;}
	.shdo{position: fixed; left:0; top:0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 10; display: none;}
	.stan-box{padding:10px 20px; width: 400px; max-height: 500px; background: #fff; position: fixed; left:100px; top:100px; z-index: 11; display: none;}
	.simgBox{max-height: 440px; overflow: auto; text-align: center;}
	.simgBox img{}
	.stit{height: 30px;}
	.stit .yuan{font-size: 14px;}
	.stit .cuo{display: block; width: 20px; height: 20px; color: #fff; background: #007aff; line-height: 20px; text-align: center; position: absolute; right:0; top:0; cursor: pointer;}
	.sbot{height: 30px; }
	.sbot span{height: 26px; line-height: 26px; width: 50px; font-size: 12px; color: #fff;  background: #007aff;  float: right; text-align: center; border-radius: 2px;margin-top: 6px; cursor: pointer;}
	.tanimg{cursor:pointer;}
    .aBtnInput{display: inline-block; padding:0 2px; background: #f1f1f1; border:1px solid #a5a5a5; border-radius: 2px; }
    .aBtnInput:link,.aBtnInput:visited,.aBtnInput:hover,.aBtnInput:active{text-decoration: none;color: #333;}
</style>
</head>
<body>
<div class="wrap js-check-wrap">
	<ul class="nav nav-tabs">
		<li class="active"><a>总数据报表</a></li>
	</ul>
	<form class="well form-search" method="post" action="{:U('Report/zong_baobiao')}">
	时间:
		<input type="text" name="kaishi" id="test1" class="js-datetime" style="width: 150px" value="{$kaishi}">&nbsp;至&nbsp;
		<input type="text" name="jieshu" id="test2" class="js-datetime" style="width: 150px" value="{$jieshu}">
		<input type="submit" class="btn btn-primary" value="搜索" />
		<a class="btn btn-danger" href="{:U('Report/zong_baobiao')}">清空</a>
     </form>

		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th style="text-align: center">总投注量</th>
					<th style="text-align: center">有效投注</th>
					<th style="text-align: center">投注人数</th>
					<th style="text-align: center"><?php if(!empty($kaishi) || !empty($jieshu)){echo "注册会员";}else{echo "当天注册会员";} ?></th>
					<th style="text-align: center"><?php if(!empty($kaishi) || !empty($jieshu)){echo "充值会员";}else{echo "当天充值会员";} ?></th>
					<th style="text-align: center">新会员首次充值人数</th>
				</tr>
			</thead>
			<tbody>
				<tr>
					<td style="text-align: center">{$touzhu}</td>
					<td style="text-align: center">{$youxiao}</td>
					<td style="text-align: center">{$touzhurenshu}</td>
					<td style="text-align: center">{$zhuce}</td>
					<td style="text-align: center">{$chongzhi}</td>
					<td style="text-align: center">{$count_sc}</td>
				</tr>
			</tbody>
		</table>
   <br/><br/><br/>
	<table class="table table-hover table-bordered">
		<thead>
		<tr>
			<th style="text-align: center">充值总额</th>
			<th style="text-align: center">投注总额</th>
			<th style="text-align: center">返点总额</th>
			<th style="text-align: center">中奖金额</th>
			<th style="text-align: center">活动礼金</th>
			<th style="text-align: center">提现金额</th>
			<th style="text-align: center">盈亏统计</th>
			<th style="text-align: center">账号余额</th>
		</tr>
		</thead>
		<tbody>
		<tr>
			<td style="text-align: center"><?php echo sprintf('%.2f',$cunkuan); ?></td>
			<td style="text-align: center"><?php echo sprintf('%.2f',$touzhujine); ?></td>
			<td style="text-align: center"><?php echo sprintf('%.2f',$fandian); ?></td>
			<td style="text-align: center"><?php echo sprintf('%.2f',$zhongjiang); ?></td>
			<td style="text-align: center"><?php echo sprintf('%.2f',$huodong); ?></td>
			<td style="text-align: center"><?php echo sprintf('%.2f',$tixian); ?></td>
			<td style="text-align: center"><?php echo sprintf('%.2f',$yingkuizonge); ?></td>
			<td style="text-align: center"><?php echo sprintf('%.2f',$zhanghu_yue); ?></td>
		</tr>
		</tbody>
	</table>


</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>